package com.lovejes.cuniao.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the cn_ucenter table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="cn_ucenter"
 */

public abstract class BaseCnUcenter  implements Serializable {

	public static String REF = "CnUcenter";
	public static String PROP_FOLLOWNUM = "Follownum";
	public static String PROP_NUM8 = "Num8";
	public static String PROP_REQNUM = "Reqnum";
	public static String PROP_TOPICNUM = "Topicnum";
	public static String PROP_USERID = "Userid";
	public static String PROP_NUM3 = "Num3";
	public static String PROP_NUM1 = "Num1";
	public static String PROP_FANSNUM = "Fansnum";
	public static String PROP_NUM5 = "Num5";
	public static String PROP_NUM7 = "Num7";
	public static String PROP_RESNUM = "Resnum";
	public static String PROP_NUM4 = "Num4";
	public static String PROP_NUM2 = "Num2";
	public static String PROP_NUM6 = "Num6";
	public static String PROP_NUM9 = "Num9";
	public static String PROP_NUM10 = "Num10";
	public static String PROP_ID = "Id";
	public static String PROP_FRIENDNUM = "Friendnum";


	// constructors
	public BaseCnUcenter () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseCnUcenter (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String userid;
	private java.lang.Integer follownum;
	private java.lang.Integer fansnum;
	private java.lang.Integer friendnum;
	private java.lang.Integer reqnum;
	private java.lang.Integer resnum;
	private java.lang.Integer topicnum;
	private java.lang.Integer num1;
	private java.lang.Integer num2;
	private java.lang.Integer num3;
	private java.lang.Integer num4;
	private java.lang.Integer num5;
	private java.lang.Integer num6;
	private java.lang.Integer num7;
	private java.lang.Integer num8;
	private java.lang.Integer num9;
	private java.lang.Integer num10;


	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: USERID
	 */
	public java.lang.String getUserid () {
		return userid;
	}

	/**
	 * Set the value related to the column: USERID
	 * @param userid the USERID value
	 */
	public void setUserid (java.lang.String userid) {
		this.userid = userid;
	}



	/**
	 * Return the value associated with the column: FOLLOWNUM
	 */
	public java.lang.Integer getFollownum () {
		return follownum;
	}

	/**
	 * Set the value related to the column: FOLLOWNUM
	 * @param follownum the FOLLOWNUM value
	 */
	public void setFollownum (java.lang.Integer follownum) {
		this.follownum = follownum;
	}



	/**
	 * Return the value associated with the column: FANSNUM
	 */
	public java.lang.Integer getFansnum () {
		return fansnum;
	}

	/**
	 * Set the value related to the column: FANSNUM
	 * @param fansnum the FANSNUM value
	 */
	public void setFansnum (java.lang.Integer fansnum) {
		this.fansnum = fansnum;
	}



	/**
	 * Return the value associated with the column: FRIENDNUM
	 */
	public java.lang.Integer getFriendnum () {
		return friendnum;
	}

	/**
	 * Set the value related to the column: FRIENDNUM
	 * @param friendnum the FRIENDNUM value
	 */
	public void setFriendnum (java.lang.Integer friendnum) {
		this.friendnum = friendnum;
	}



	/**
	 * Return the value associated with the column: REQNUM
	 */
	public java.lang.Integer getReqnum () {
		return reqnum;
	}

	/**
	 * Set the value related to the column: REQNUM
	 * @param reqnum the REQNUM value
	 */
	public void setReqnum (java.lang.Integer reqnum) {
		this.reqnum = reqnum;
	}



	/**
	 * Return the value associated with the column: RESNUM
	 */
	public java.lang.Integer getResnum () {
		return resnum;
	}

	/**
	 * Set the value related to the column: RESNUM
	 * @param resnum the RESNUM value
	 */
	public void setResnum (java.lang.Integer resnum) {
		this.resnum = resnum;
	}



	/**
	 * Return the value associated with the column: TOPICNUM
	 */
	public java.lang.Integer getTopicnum () {
		return topicnum;
	}

	/**
	 * Set the value related to the column: TOPICNUM
	 * @param topicnum the TOPICNUM value
	 */
	public void setTopicnum (java.lang.Integer topicnum) {
		this.topicnum = topicnum;
	}



	/**
	 * Return the value associated with the column: NUM1
	 */
	public java.lang.Integer getNum1 () {
		return num1;
	}

	/**
	 * Set the value related to the column: NUM1
	 * @param num1 the NUM1 value
	 */
	public void setNum1 (java.lang.Integer num1) {
		this.num1 = num1;
	}



	/**
	 * Return the value associated with the column: NUM2
	 */
	public java.lang.Integer getNum2 () {
		return num2;
	}

	/**
	 * Set the value related to the column: NUM2
	 * @param num2 the NUM2 value
	 */
	public void setNum2 (java.lang.Integer num2) {
		this.num2 = num2;
	}



	/**
	 * Return the value associated with the column: NUM3
	 */
	public java.lang.Integer getNum3 () {
		return num3;
	}

	/**
	 * Set the value related to the column: NUM3
	 * @param num3 the NUM3 value
	 */
	public void setNum3 (java.lang.Integer num3) {
		this.num3 = num3;
	}



	/**
	 * Return the value associated with the column: NUM4
	 */
	public java.lang.Integer getNum4 () {
		return num4;
	}

	/**
	 * Set the value related to the column: NUM4
	 * @param num4 the NUM4 value
	 */
	public void setNum4 (java.lang.Integer num4) {
		this.num4 = num4;
	}



	/**
	 * Return the value associated with the column: NUM5
	 */
	public java.lang.Integer getNum5 () {
		return num5;
	}

	/**
	 * Set the value related to the column: NUM5
	 * @param num5 the NUM5 value
	 */
	public void setNum5 (java.lang.Integer num5) {
		this.num5 = num5;
	}



	/**
	 * Return the value associated with the column: NUM6
	 */
	public java.lang.Integer getNum6 () {
		return num6;
	}

	/**
	 * Set the value related to the column: NUM6
	 * @param num6 the NUM6 value
	 */
	public void setNum6 (java.lang.Integer num6) {
		this.num6 = num6;
	}



	/**
	 * Return the value associated with the column: NUM7
	 */
	public java.lang.Integer getNum7 () {
		return num7;
	}

	/**
	 * Set the value related to the column: NUM7
	 * @param num7 the NUM7 value
	 */
	public void setNum7 (java.lang.Integer num7) {
		this.num7 = num7;
	}



	/**
	 * Return the value associated with the column: NUM8
	 */
	public java.lang.Integer getNum8 () {
		return num8;
	}

	/**
	 * Set the value related to the column: NUM8
	 * @param num8 the NUM8 value
	 */
	public void setNum8 (java.lang.Integer num8) {
		this.num8 = num8;
	}

	public java.lang.Integer getNum9() {
		return num9;
	}

	public void setNum9(java.lang.Integer num9) {
		this.num9 = num9;
	}
	
	public java.lang.Integer getNum10() {
		return num10;
	}

	public void setNum10(java.lang.Integer num10) {
		this.num10 = num10;
	}

	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.cuniao.domain.CnUcenter)) return false;
		else {
			com.lovejes.cuniao.domain.CnUcenter cnUcenter = (com.lovejes.cuniao.domain.CnUcenter) obj;
			if (null == this.getId() || null == cnUcenter.getId()) return false;
			else return (this.getId().equals(cnUcenter.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}